﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// TreeParams 的摘要说明
/// </summary>
public class TreeParams
{
    private string _sqlSelect;
    private string _fieldParentID;
    private string _fieldCurrNodeID;
    private string _fieldUrl;
    private string _fieldText;
    private string _headMark;
    private string _target;
    private string _jsFunctionName;

    public TreeParams()
    {
    }

    /// <summary>
    /// 数据库中设置SQL查询语句
    /// </summary>
    public string SQLSelect
    {
        get { return _sqlSelect; }
        set { _sqlSelect = value; }
    }

    /// <summary>
    /// 数据库中父节点字段
    /// </summary>
    public string FieldParentID
    {
        get { return _fieldParentID; }
        set { _fieldParentID = value; }
    }

    /// <summary>
    /// 数据库中子节点字段名
    /// </summary>
    public string FieldCurrNodeID
    {
        get { return _fieldCurrNodeID; }
        set { _fieldCurrNodeID = value; }
    }

    /// <summary>
    /// 数据库中URL字段名
    /// </summary>
    public string FieldUrl
    {
        get { return _fieldUrl; }
        set { _fieldUrl = value; }
    }

    /// <summary>
    /// 数据库中树的文本字段名
    /// </summary>
    public string FieldText
    {
        get { return _fieldText; }
        set { _fieldText = value; }
    }
    /// <summary>
    /// 根节点标识
    /// </summary>
    public string HeadMark
    {
        get { return _headMark; }
        set { _headMark = value; }
    }

    /// <summary>
    /// 设定页面打开方式target
    /// </summary>
    public string Target
    {
        get { return _target; }
        set { _target = value; }
    }

    /// <summary>
    /// 客户端JS方法，用于组织机构等非导航菜单类的树构建
    /// </summary>
    public string JSFunctionName
    {
        get { return _jsFunctionName; }
        set { _jsFunctionName = value; }
    }
}
